/*
 * Copyright user2010
 * All rights reserved
 */

package org.myorg.applitest.gui.swing.components.panel;

import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 *
 * @author user
 */
public class PnlNewItmAnm extends JPanel{
    public PnlNewItmAnm(ActionListener lst){
        initComponents(lst);

    }

    protected void initComponents(ActionListener lst){
        this.pnlID = new PnlIdtAnm();

        jphoto = new javax.swing.JScrollPane();
        photo = new javax.swing.JTextArea();

        command = new PnlBtnGrpCommand(lst);



        photo.setColumns(20);
        photo.setRows(5);
        jphoto.setViewportView(photo);




        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                
                        .addComponent(pnlID, javax.swing.GroupLayout.DEFAULT_SIZE, 625, Short.MAX_VALUE)
                    
                    .addComponent(command, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlID, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(15, 15, 15)
                .addComponent(command)
                .addContainerGap())
        );
    }
    

    public String getIdentiteNom(){
        return pnlID.getIdentiteNom();
    }

    public String getIdentiteDateNaissance(){
        return pnlID.getIdentiteDateNaissance();
    }
        public String getIdentiteDateMort(){
        return pnlID.getIdentiteDateMort();
    }
    public String getIdentiteSexe(){
        return pnlID.getIdentiteSexe();
    }

    public String getIdProprietaire(){
        return pnlID.getIdProprietaire();
    }
    public String getCastre(){
        return pnlID.getCastre();
    }
    public String getEspece(){
        return pnlID.getEspece();
    }
    public String getRace(){
        return pnlID.getRace();
    }

    private PnlBtnGrpCommand command;


    private JScrollPane jphoto;

    private JTextArea photo;

    protected PnlIdtAnm pnlID;

}
